[NTG-context] Re: A new problem with space in third itemize

2024-02-29 Thread Ursula Hermann
style is interesting. I do not understand the purpose of the \it for example. I did put something together that you can try, but I don't know if this is what you are looking for. \starttext \startitemize[n] \startitem \m{\forall n \in \naturalnumbers\mtp{:} n^2 > n \implies n > 1}, \st

[NTG-context] Re: A new problem with space in third itemize

2024-02-29 Thread Mikael Sundqvist
Hi Uschi, Your coding style is interesting. I do not understand the purpose of the \it for example. I did put something together that you can try, but I don't know if this is what you are looking for. \starttext \startitemize[n] \startitem \m{\forall n \in \naturalnumbers\mtp{:} n^2 > n \impl

[NTG-context] Re: Looking for itemize help

2024-01-15 Thread Jim
ot; with no luck. > Hi Jim, > such a feature exists only to suppress paragraph indentation but not to > ignore whitespace > between paragraphs. > \setupitemize[indentnext=auto] > \setupindenting[yes,medium] > \starttext > Lorem ipsum dolor sit amet, consectetur adipiscing

[NTG-context] Re: Looking for itemize help

2024-01-15 Thread Wolfgang Schuster
tion but not to ignore whitespace between paragraphs. \setupitemize[indentnext=auto] \setupindenting[yes,medium] \starttext Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa turpis, semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi \unknown \star

[NTG-context] Re: numbered itemize list item label alignment

2023-10-19 Thread Csikos Bela
t; same position. I normally use the `fit` key with an appropriate value of `distance`. For example: \showframe[text][text] \starttext \startitemize[n,fit,broad][distance=0.25em,itemalign=flushright] \dorecurse{1}{\startitem xxx\stopitem} \stopitemize \page \startitemize[n,fit,broad][

[NTG-context] Re: numbered itemize list item label alignment

2023-10-15 Thread Aditya Mahajan
gt; value > (e.g. width=2em) to let all items (independent of the entries) start on the > same position. I normally use the `fit` key with an appropriate value of `distance`. For example: \showframe[text][text] \starttext \startitemize[n,fit,broad][distance=0.25em,itemalign=flushrigh

[NTG-context] Re: numbered itemize list item label alignment

2023-10-15 Thread Wolfgang Schuster
num\lastcountervalue[itemgroup:itemize]>9 \widthofstring{00.}%    \else \widthofstring{0.}%    \fi} \showframe[text][text] \starttext \startitemize[n][width=\ItemWidth,itemalign=flushright] \dorecurse{1}{\startitem xxx\stopitem} \stopitemize \page \startitemize[n][width=\ItemWidth,itemalign=flus

[NTG-context] Re: \setupitemgroup for footnotes

2023-09-25 Thread Henning Hraban Ramm
[before]}\endgraf}, after={\endgraf{\ttbf [after]}\endgraf}] \stopsetups \setupnote[footnote][setups=forfootnote] \footnote{\startitemize \startitem Choose the correct answer. \startitemize \item This one

[NTG-context] \setupitemgroup for footnotes

2023-09-25 Thread Pablo Rodriguez
{\ttbf [after]}\endgraf}] \stopsetups \setupnote[footnote][setups=forfootnote] \footnote{\startitemize \startitem Choose the correct answer. \startitemize \item This one \stopitemize \stopitem \stopitemize} \stoptext

[NTG-context] Re: Vertical Space between Text and Itemize List

2023-09-06 Thread Mikael Sundqvist
Hi, You can use before, inbetween and after. \setupitemgroup [itemize] [inbetween={\blank[1cm]}, before={\blank[2cm]}, after={\blank[3cm]}] \starttext \samplefile{ward} \startitemize \dorecurse{4}{ \startitem \samplefile{knuthmath} \stopitem } \stopitemize \samplefile{ward} \stoptext

[NTG-context] Re: Nested itemize

2023-08-22 Thread fv leung
] [a,two] [ margin=2cm, before={\blank[overlay,-depth]}, after={\blank[nowhite]}, stopper=) ] %\showboxes \autofences \starttext \samplefile{ward} \startitemize[n][style=\bf,before={\blank[back,overlay]},after={\blank[medium]}] \startitem \startalextable \startitem \m{6(x

[NTG-context] Re: Nested itemize

2023-08-22 Thread Alexandre Christe
{ward} \startitemize[n][style=\bf]  \startitem  \startalextable  \startitem $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ \stopitem  \startitem $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ \stopitem  \startitem $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ \stopitem  \startitem $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9

[NTG-context] Re: Nested itemize

2023-08-22 Thread Mikael Sundqvist
m $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ > \stopitemize > \stopitemize > > A. Christe > Le 22 août 2023 à 04:08 +0200, fv leung , a écrit : > > I'd do it this way: > > \starttext > \startitemize[n][style=\bf] > \item\vtop{% > \startitemize[a,horizontal,four][

[NTG-context] Re: Nested itemize

2023-08-21 Thread Alexandre Christe
, a écrit : > I'd do it this way: > > \starttext > \startitemize[n][style=\bf] > \item\vtop{% >   \startitemize[a,horizontal,four][stopper=\)] >     \startitem >       $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ >     \stopitem >     \startitem >       $-3(x - \dfrac{1}{3})^

[NTG-context] Re: Nested itemize

2023-08-21 Thread fv leung
I'd do it this way: \starttext \startitemize[n][style=\bf] \item\vtop{% \startitemize[a,horizontal,four][stopper=\)] \startitem $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ \stopitem \startitem $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ \stopitem \startitem $7(x

[NTG-context] itemize

2023-08-15 Thread Hans Hagen via ntg-context
(nesting, trial mode etc), think of \bTABLE \bTR \bTD \startitemize[a] \startitem \im{\sqrt{\frac{1}{x^4}}} \stopitem \startitem \startitemize[n] \startitem \im{\sqrt{\frac{1}{x^4}}} \stopitem \startitem \im{\sqrt{\frac{1}{x^4}}} \stopitem \stopitemize

[NTG-context] itemize

2023-08-15 Thread Hans Hagen via ntg-context
(nesting, trial mode etc), think of \bTABLE \bTR \bTD \startitemize[a] \startitem \im{\sqrt{\frac{1}{x^4}}} \stopitem \startitem \startitemize[n] \startitem \im{\sqrt{\frac{1}{x^4}}} \stopitem \startitem \im{\sqrt{\frac{1}{x^4}}} \stopitem \stopitemize

[NTG-context] Re: Text item groups

2023-07-16 Thread Pablo Rodriguez
m getting your point right). Complete sample that worked for me: \setupindenting[yes,medium] \starttext \startitemize[a,intext] [left=(, right=), stopper=, alignsymbol=yes, indenting={yes,medium}] \startitem \input{jojomayer}\stopitem \startitem \input{jojomayer}\stopitem \startit

[NTG-context] Re: Text item groups

2023-07-16 Thread Wolfgang Schuster
][textdistance=none] \startitem \input{jojomayer}\stopitem \startitem \input{jojomayer}\stopitem \startitem \input{jojomayer}\stopitem \stopitemize \stoptext Indentation is ignored altogether. Thank you in advance \setupindenting[yes,medium] \starttext \samplefile{jojomayer} \startitemize

[NTG-context] Re: Text item groups

2023-07-16 Thread Bruce Horrocks
I'm not quite sure what you mean by "run along with text". If you mean "keep in the same paragraph" then just remove the blank lines from your example, e.g. \setupindenting[yes,medium] \starttext \startitemize[a,text][textdistance=none] \startitem \input{jojomayer}\stopit

[NTG-context] Text item groups

2023-07-15 Thread Jairo A. del Rio
Hi, list! I want to know how to make numbers in text item groups run along with text (for instance, wrt indentation) regardless of their position in text. In the following example: \setupindenting[yes,medium] \starttext \startitemize[a,text][textdistance=none] \startitem \input{jojomayer

Re: [NTG-context] Kaktovik numerals

2023-04-19 Thread Hans Hagen via ntg-context
\showglyphs KAKTOVIK \dostepwiserecurse{0}{19}{1}{\kaktoviknumerals{#1}\space } \stop kaktovik \start \red\glyphxscale 700 \dostepwiserecurse{0}{19}{1}{\kaktoviknumerals{#1}\space } \stop \startitemize[packed,K][color=orange,stopper=] \startit

Re: [NTG-context] Kaktovik numerals

2023-04-18 Thread Hans Hagen via ntg-context
stepwiserecurse{0}{19}{1}{\kaktoviknumerals{#1}\space } \stop kaktovik \start \red\glyphxscale 700 \dostepwiserecurse{0}{19}{1}{\kaktoviknumerals{#1}\space } \stop \startitemize[packed,K][color=orange,stopper=] \startitem first \stopitem

Re: [NTG-context] update / punctuation / math

2023-04-01 Thread Alan Braslau via ntg-context
= > > We added the tex of the pdf below > > == extract from roadmap == > > \usemodule[article-basic,abbreviations-logos] > > \setupbodyfont[concrete] > > \starttext > > \startsubject[title=Math in \CONTEXT\ roadmap] > > \startitemize[n]

Re: [NTG-context] update / punctuation / math

2023-04-01 Thread Willi Egger via ntg-context
== > > \usemodule[article-basic,abbreviations-logos] > > \setupbodyfont[concrete] > > \starttext > > \startsubject[title=Math in \CONTEXT\ roadmap] > > \startitemize[n] > > \startitem >After playing with math support for more than a year, we

[NTG-context] update / punctuation / math

2023-04-01 Thread Hans Hagen via ntg-context
dmap == \usemodule[article-basic,abbreviations-logos] \setupbodyfont[concrete] \starttext \startsubject[title=Math in \CONTEXT\ roadmap] \startitemize[n] \startitem After playing with math support for more than a year, we have come to the conclusion that it is time to move on. We have alr

Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-13 Thread Fabrice Couvreur via ntg-context
f] \stopmidaligned \stoplinecorrection Représenter graphiquement les cinq premiers termes de cette suite. \stopex \startex La suite \u est arithmétique de raison \m{r=-7} et de premier terme \m{u_0=5}. \startitemize[n] \startitem Calculer \m{u_{16}}. \s

Re: [NTG-context] Count (and limit) glyphs per line?

2022-07-18 Thread Benjamin Buchmuller via ntg-context
0 \samplefile{tufte} \CrappyTraced \par % \crappyspecstep 2pt \samplefile{tufte} \CrappyTraced \par \samplefile{tufte} \CrappyTraced \startitemize \startitem \samplefile{tufte} \CrappyTraced \stopitem \startitem \samplefile{ward} \CrappyTraced \stopitem \stopitemize \startnarrower

Re: [NTG-context] right item marks for associative questions? (śrīrāma)

2022-04-16 Thread śrīrāma via ntg-context
t|stop)item, or equivalently (start|stop)itemgroupitem. It does not seem to group like (most?) other groups. (see strc-itm.mklx) For instance if we switch to bold without grouping inside \(start|stop)item it cascades through. \startitemize[circle] \startitem \bf First \stopitem \startitem

Re: [NTG-context] right item marks for associative questions?

2022-04-12 Thread Wolfgang Schuster via ntg-context
\bTR     \bTD   \startitemize[circle,random][align=righttoleft]       \startitem {\lefttoright One} \stopitem       \startitem {\lefttoright Two} \stopitem       \startitem {\lefttoright Three} \stopitem   \stopitemize     \eTD     \bTD   \startitemize[circle,random]       \startitem

Re: [NTG-context] right item marks for associative questions?

2022-04-11 Thread śrīrāma via ntg-context
\startitemize[n] \dorecurse{5}{ \startaitem whatever left \stopaitem } \stopitemize \startitemize[a][left=(,right=),stopper=,width=1cm] \dorecurse{5}{ \startitem whatever right \stopitem } \stopitemize \stopcolumns \stoptext %%% stop example-1 [You can tweak th

Re: [NTG-context] right item marks for associative questions?

2022-04-11 Thread Jeong Dal via ntg-context
Dear Damien, Using the “columns" feature is one way to go if you don’t mind the vertical alignment mismatch in the third items. Best regards, Dalyoung \starttext \startitemize [8,columns]%,two] \startitem Nietzsche \stopitem \startitem Woody Allen \stopitem \startitem God \stopitem \star

Re: [NTG-context] right item marks for associative questions?

2022-04-11 Thread Pablo Rodriguez via ntg-context
On 4/11/22 20:46, Damien Thiriet via ntg-context wrote: > [...] > I design it as a two-cells xtable with itemized lists inside. > How can I have the item mark on the right side? Hi Damien, I’m not sure I get your point, but this may be helpful: \startitem \inrightmargin{\currenti

[NTG-context] right item marks for associative questions?

2022-04-11 Thread Damien Thiriet via ntg-context
el so good" God * * "Nietzsche is dead" I design it as a two-cells xtable with itemized lists inside. How can I have the item mark on the right side? \starttext \startitemize [8] \startitem Nietzsche \stopitem \startitem Allen \stopitem \startitem God \stopitem \stopitemize \stopte

Re: [NTG-context] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Wolfgang Schuster via ntg-context
pbackgrounds[state=repeat] \starttext text \setlayer[test]{layer} text \page text \stoptext \starttext \startitemize[columns,three] \startitem One \stopitem \startitem Two\par Three \stopitem \stopitemize \stoptext \starttext text {\italicface text {\boldface text} text

Re: [NTG-context] Problem with \head inside \itemize

2021-12-23 Thread Benjamin Buchmuller via ntg-context
a user error. When you put the head text in the argument of > \starthead everything works as expected. > > \starttext > > \startitemize[headintext][headstyle=bold] > \startitem Unformatted item. \stopitem > \starthead {Head One.} Something bla bla. \stophead > \sta

Re: [NTG-context] Problem with \head inside \itemize

2021-12-21 Thread Wolfgang Schuster via ntg-context
everything works as expected. \starttext \startitemize[headintext][headstyle=bold] \startitem Unformatted item. \stopitem \starthead {Head One.} Something bla bla. \stophead \starthead {Head Two.} Other bla bla. \stophead \stopitemize \stoptext Wolfgang

Re: [NTG-context] Framedtext : text out of frame

2021-09-26 Thread Hans Hagen via ntg-context
=color,backgroundcolor=navajowhite1]       \startitemize[columns,three,n]         \startitem          Une quantité constante est une quantité déterminée, qui conserve toujours la même valeur.         \stopitem\par         \startitem           Une quantité variable est une quantité indéterminée

[NTG-context] Framedtext : text out of frame

2021-09-26 Thread Fabrice Couvreur via ntg-context
,n] \startitem Une quantité constante est une quantité déterminée, qui conserve toujours la même valeur. \stopitem\par \startitem Une quantité variable est une quantité indéterminée, ou, si l'on veut, une quantité universelle, qui comprend toutes les valeurs

Re: [NTG-context] \usemodule[chinese] not found

2021-09-06 Thread Sylvain Hubert via ntg-context
something else? > we moved on to unicode etc etc > > \starttext > > \startitemize[cn] > \startitem x \stopitem > \stopitemize > > \stoptext > > but it assumes a font that has chinese > > - >

Re: [NTG-context] \usemodule[chinese] not found

2021-09-06 Thread Hans Hagen via ntg-context
no longer find the 'chinese' module neither in texlive, in lmtx, nor on the website. Has this module been removed or replaced by something else? we moved on to unicode etc etc \starttext \startitemize[cn] \startitem x \stopitem \stopitemize \stoptext but it assumes a font that has

[NTG-context] Strange behavior of a macro

2021-08-16 Thread Fabrice Couvreur via ntg-context
\N, \m{l} et \m{l'} deux réels. 54 \startitem 55 \u converge vers \m{l}, 56 \stopitem 57 \stopitemize 58 alors \m{l\geqslant 0}. 59 \stopproposition 60 \startremarque 61 Nous retiendr

Re: [NTG-context] itemize margins,

2021-06-01 Thread denis.maier
xample the second line of the quote is not lined up with the first line. = \starttext \startitemize[n] [ %right=), %stopper=, %width=2em, %alternative=fit, %alternative=left, %alternative=intext, %distance=1em, %leftmargin=1em, %itemalign=flushleft, ] \startitem \setupind

Re: [NTG-context] itemize margins,

2021-06-01 Thread Wolfgang Schuster
, %alternative=intext, %distance=1em, %leftmargin=1em, %itemalign=flushleft, ] \startitem \setupindenting[no] \input knuth \stopitem \stoptext == I’ve played with different options, but I couldn’t get the indents and margins right. What am I missing ? Any hints ? You

[NTG-context] itemize margins,

2021-06-01 Thread denis.maier
, ] \startitem \setupindenting[no] \input knuth \stopitem \stoptext == I've played with different options, but I couldn't get the indents and margins right. What am I missing ? Any hints ? Thanks for you help, Denis

Re: [NTG-context] xml processing in latest

2021-04-21 Thread denis.maier
gt; > > > \startxmlsetups xml:document > > \xmlflush{#1} > > \stopxmlsetups > > > > \startxmlsetups xml:p > > \xmlflush{#1} \par > > \stopxmlsetups > > > > \startxmlsetups xml:numbered > > \startitemize [n] > >

Re: [NTG-context] xml processing in latest

2021-04-21 Thread denis.maier
istersetup{xml:testsetups} > > \startxmlsetups xml:document > \xmlflush{#1} > \stopxmlsetups > > \startxmlsetups xml:p > \xmlflush{#1} \par > \stopxmlsetups > > \startxmlsetups xml:numbered > \startitemize [n] > \xmlflush{#1} >

[NTG-context] xml processing in latest

2021-04-21 Thread Thomas A. Schmitz
\startitemize [n] \xmlflush{#1} \stopitemize \stopxmlsetups \startxmlsetups xml:item \startitem \xmlflush{#1} \stopitem \stopxmlsetups \starttext \xmlprocessbuffer{main}{test}{} \stoptext

[NTG-context] Alignment with an enumeration

2021-04-12 Thread Fabrice Couvreur
\startdefinition \startitemize[n] \startitem First item \stopitem \startitem Second item \stopitem \stopitemize \stopdefinition \stoptext ___ If your question is of interest to others as well, please

Re: [NTG-context] Forcing indentation on item groups

2021-02-02 Thread Jairo A. del Rio
; > \setupindenting[yes,medium] > > > > \starttext > > > > \startitemize[n,text][stopper=,lefttext=(,righttext=)] > > > > \startitem A\stopitem > > > > > > \startitem B\stopitem > > > > > > \startitem C\stopitem > > > > \st

Re: [NTG-context] Forcing indentation on item groups

2021-02-02 Thread Wolfgang Schuster
Jairo A. del Rio schrieb am 03.02.2021 um 00:37: Hi list. I have the following example: \setupindenting[yes,medium] \starttext \startitemize[n,text][stopper=,lefttext=(,righttext=)] \startitem A\stopitem \startitem B\stopitem \startitem C\stopitem \stopitemize \stoptext The item

[NTG-context] Forcing indentation on item groups

2021-02-02 Thread Jairo A. del Rio
Hi list. I have the following example: \setupindenting[yes,medium] \starttext \startitemize[n,text][stopper=,lefttext=(,righttext=)] \startitem A\stopitem \startitem B\stopitem \startitem C\stopitem \stopitemize \stoptext The item group doesn't follow indentation. Adding \leavevmode

Re: [NTG-context] issue with LMTX and itemize

2020-11-07 Thread Alan Bowen
and on mine with today’s standalone. A. On Sat, Nov 7, 2020 at 10:27 AM Pablo Rodriguez wrote: > On 11/7/20 4:11 PM, Alan Bowen wrote: > > Hi, Pablo— > > > > Shouldn’t it be either > > \item a > > or > > \startitem a\stopitem > > ? > Hi Alan, >

Re: [NTG-context] issue with LMTX and itemize

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 4:11 PM, Alan Bowen wrote: > Hi, Pablo— > > Shouldn’t it be either  > \item a > or > \startitem a\stopitem > ? Hi Alan, of course, the sample reads: \starttext \startitemize \startitem a\stopitem \stopitemize \stoptext But the issue sti

Re: [NTG-context] issue with LMTX and itemize

2020-11-07 Thread Alan Bowen
Hi, Pablo— Shouldn’t it be either \item a or \startitem a\stopitem ? Alan On Sat, Nov 7, 2020 at 9:52 AM Pablo Rodriguez wrote: > Dear list, > > I have the following sample: > > \starttext > \startitemize > \item a\stopitem > \stopitemize > \st

Re: [NTG-context] another error message in LMTX

2020-11-07 Thread Hans Hagen
\setuptagging[state=start] \starttext \starttyping mtxrunjit --generate \stoptyping \startitemize[n] \startitem a\stopitem \stopitemize \stoptext I have no idea why. because \doverbatimspace is defined in a way that will look ahead \unexpanded\def

Re: [NTG-context] another error message in LMTX

2020-11-07 Thread Pablo Rodriguez
ext \starttyping mtxrunjit --generate \stoptyping \startitemize[n] \startitem a\stopitem \stopitemize \stoptext I have no idea why. Many thanks for your help, Pablo > well, the clue is there: you have > > you have a \hskip or \vskip someplace that is not properl

Re: [NTG-context] packed items not working in latest from 2020.09.03 12:08

2020-09-03 Thread Hans Hagen
On 9/3/2020 4:52 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \starttext \startitemize[n] \startitem Item\stopitem \startitem Item\stopitem \startitem Item\stopitem \startitem Item\stopitem \stopitemize \startitemize[a, packed

Re: [NTG-context] packed items not working in latest from 2020.09.03 12:08

2020-09-03 Thread Hans Hagen
On 9/3/2020 4:52 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \starttext \startitemize[n] \startitem Item\stopitem \startitem Item\stopitem \startitem Item\stopitem \startitem Item\stopitem \stopitemize \startitemize[a, packed

[NTG-context] packed items not working in latest from 2020.09.03 12:08

2020-09-03 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \startitemize[n] \startitem Item\stopitem \startitem Item\stopitem \startitem Item\stopitem \startitem Item\stopitem \stopitemize \startitemize[a, packed] \startitem Item\stopitem \startitem Item\stopitem

Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Pablo Rodriguez
On 8/27/20 7:35 PM, Wolfgang Schuster wrote: > [...] > You have to replace %% with \letterpercent\letterpercent because you're > still playing with TeX rules. > > \startxmlsetups xml:special >     \startitem > \cldcontext{string.gsub("\xmlraw{#1}{.}"

Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 27.08.2020 um 19:16: On 8/27/20 6:16 PM, Wolfgang Schuster wrote: Pablo Rodriguez schrieb am 27.08.2020 um 17:56: [...] \startxmlsetups xml:special \startitem \cldcontext{string.gsub([[\xmlraw{#1}{.}]], "%%", "

Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Pablo Rodriguez
On 8/27/20 6:16 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 27.08.2020 um 17:56: >> [...] >>\startxmlsetups xml:special >> \startitem >> \cldcontext{string.gsub([[\xmlraw{#1}{.}]], "%%", >> "\\letterp

Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Wolfgang Schuster
xmlsetsetup{#1}{html}{xml:gen} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:gen \startitemize \xmlfilter{#1}{/**/span[@class='special']/command(xml:special)} \stopitemize \stopxmlsetups \startxmlsetups xml:special \startitem \cldcontext{stri

Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Pablo Rodriguez
up{#1}{html}{xml:gen} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:gen \startitemize \xmlfilter{#1}{/**/span[@class='special']/command(xml:special)} \stopitemize \stopxmlsetups \startxmlsetups xml:special \startitem \cldcontext{string.gsub([[\xmlr

[NTG-context] keeping content chunks on same page

2020-08-24 Thread Mike Cooper
\startquestion Before a joint of pipe is laid down, the thread protector should be installed. \startachoices \startitem True \stopitem \startitem False \stopitem \stopachoices \stopquestion \startquestion The hardest part of the drilling program

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Otared Kavian
iding automatical numbering, e.g. of chapters >>> or itemization items. >>> E.g. in my songbook, I’d like to have the verses numbered but interrupted >>> by a chorus numbered as "C" (i.e. "R" in German). >>> Similarly the paragraphs of som

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Wolfgang Schuster
y)laws that were changed a lot and use a numbering like 1, 2, 3, 3a, 4, 7... Something like \startitem[number={R}] or \startsection[number={3a}] would be nice. If I set it to an integer, ConTeXt should set the counter accordingly, otherwise continue counting from the previous calculated number. Woul

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Henning Hraban Ramm
l numbering, e.g. of chapters or >> itemization items. >> E.g. in my songbook, I’d like to have the verses numbered but interrupted by >> a chorus numbered as "C" (i.e. "R" in German). >> Similarly the paragraphs of some (by)laws that were changed a lot and use a

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Wolfgang Schuster
temization items. E.g. in my songbook, I’d like to have the verses numbered but interrupted by a chorus numbered as "C" (i.e. "R" in German). Similarly the paragraphs of some (by)laws that were changed a lot and use a numbering like 1, 2, 3, 3a, 4, 7... Something like \startite

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Henning Hraban Ramm
l numbering, e.g. of chapters or itemization items. E.g. in my songbook, I’d like to have the verses numbered but interrupted by a chorus numbered as "C" (i.e. "R" in German). Similarly the paragraphs of some (by)laws that were changed a lot and use a numbering like 1, 2, 3, 3a

Re: [NTG-context] removing word in filtered XML

2020-08-20 Thread Hans Hagen
\xmlfilter{#1}{/**/div/command(xml:special)} \stopxmlsetups \startxmlsetups xml:special %~ \startitem \cldcontext{string.gsub(lxml.flush([[#1]]), " of the ", "")}\stopitem \stopxmlsetups \starttext \xmlprocessbuffer{main}{demo}{} \stopte

Re: [NTG-context] removing word in filtered XML

2020-08-20 Thread Taco Hoekwater
up{#1}{html}{xml:gen} > \stopxmlsetups > > \xmlregistersetup{xml:initialize} > > \startxmlsetups xml:gen > \xmlfilter{#1}{/**/div/command(xml:special)} > \stopxmlsetups > > \startxmlsetups xml:special >%~ \startitem >\cldcontext{string.gsub(lxml.flush(

[NTG-context] removing word in filtered XML

2020-08-19 Thread Pablo Rodriguez
\startxmlsetups xml:special %~ \startitem \cldcontext{string.gsub(lxml.flush([[#1]]), " of the ", "")}\stopitem \stopxmlsetups \starttext \xmlprocessbuffer{main}{demo}{} \stoptext Is there any way to remove " of " and " of the " in the fil

Re: [NTG-context] reading a single element from XML

2020-08-16 Thread Pablo Rodriguez
xmlsetups xml:chapter \startsection[title=\xmlatt{#1}{id}] \startitemize[packed] \xmlfilter{#1}{**/span[@class='special']/command(xml:special)} \stopitemize \stopsection \stopxmlsetups \startxmlsetups xml:special \startitem\xmlflush{#1}\stopitem \stopxmlse

[NTG-context] tabulation and \textwidth

2020-08-13 Thread Pablo Rodriguez
} \startitemize[columns, two] \dorecurse{20} {\startitem\input{zapf.tex}\stopitem} \stopitemize \startitemize[columns, three] \dorecurse{15} {\startitem\input{zapf.tex}\stopitem} \stopitemize \startitemize[columns, four] \dorecurse{10} {\startitem\input{zapf.tex}\stopitem

[NTG-context] Notation of the first derivative in mathematical mode (lmtx)

2020-08-03 Thread Fabrice Couvreur
[n] \startitem \math{f'(x)=x²+4x+4} \stopitem \startitem \math{f''(x)=2x+4} \stopitem \stopitemize \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] tabulate inside itemize

2020-07-29 Thread Mike Cooper
e at the number. I > > can’t find > anything about tabulate inside itemize. > > > > \starttext > > > > \startitemize[n] > >\startitem \starttabulate[|l|l|r|l|r|] > >\NC DC \NC

Re: [NTG-context] tabulate inside itemize

2020-07-29 Thread Mike Cooper
ntext] tabulate inside itemize > > On 7/29/2020 6:38 PM, Mike Cooper wrote: > > I would normally use tab stops and line breaks to achieve the following > > in a numbered list: > I know this looks terrible: > > \define\MyTabulateHack{\vskip-\lineheight\blank[disable]}

Re: [NTG-context] tabulate inside itemize

2020-07-29 Thread Hans Hagen
step …] This is what I tried, but the output has a blank line at the number.I can’t find anything about tabulate inside itemize. \starttext \startitemize[n] \startitem \starttabulate[|l|l|r|l|r|] \NC DC \NC = \NC 3.20 bbl \NC = \NC 420 ft \NC \NR \NC HWDP \NC = \NC 3.90 bbl \NC = \NC 450 ft

Re: [NTG-context] tabulate inside itemize

2020-07-29 Thread Aditya Mahajan
…] This is what I tried, but the output has a blank line at the number. I can’t find anything about tabulate inside itemize. \starttext \startitemize[n] \startitem \starttabulate[|l|l|r|l|r|] \NC DC \NC = \NC 3.20 bbl \NC = \NC 420 ft \NC \NR

Re: [NTG-context] tabulate inside itemize

2020-07-29 Thread Hans Hagen
On 7/29/2020 6:38 PM, Mike Cooper wrote: > I would normally use tab stops and line breaks to achieve the following > in a numbered list: I know this looks terrible: \define\MyTabulateHack{\vskip-\lineheight\blank[disable]} \startitemize[n] \startitem \MyTabulateHack \starttabulat

Re: [NTG-context] tabulate inside itemize

2020-07-29 Thread Wolfgang Schuster
has a blank line at the number.I can’t find anything about tabulate inside itemize. \starttext \startitemize[n] \startitem \starttabulate[|l|l|r|l|r|] \NC DC \NC = \NC 3.20 bbl \NC = \NC 420 ft \NC \NR \NC HWDP \NC = \NC 3.90 bbl \NC = \NC 450 ft \NC \NR \NC DP \NC = \NC 34.63 bbl \NC =\NC 2,037

[NTG-context] tabulate inside itemize

2020-07-29 Thread Mike Cooper
a blank line at the number. I can’t find anything about tabulate inside itemize. \starttext \startitemize[n] \startitem \starttabulate[|l|l|r|l|r|] \NC DC \NC = \NC 3.20 bbl \NC = \NC 420 ft \NC \NR \NC HWDP \NC = \NC

Re: [NTG-context] french translation of ConTeXt interface - progress (v3)

2020-07-19 Thread Garulfo
ent • \em, \bf, \cap, • \startitemize, \startitem, \starthead, • \placefigure, \externalfigure, • \placetable, \starttable,\starttabulate, \setupTABLE, \bTABLE • \index, \completeindex • \setuplayout, \setupfootertexts et \setupheadertexts • \definedescription, \defineenumeration • \at, \in Anyway, t

Re: [NTG-context] Text around a figure

2020-07-16 Thread Fabrice Couvreur
, frame=off, location=always, ] \showframe \starttext \starttextbackground[fondpaille] \startplacefigure[number=no,location=right] \externalfigure[dummy] \stopplacefigure \startitemize[n] \dorecurse{3}{\startitem \input ward

Re: [NTG-context] Text around a figure

2020-07-16 Thread Otared Kavian
gt; \stopplacefigure > \startitemize[n] > \dorecurse{3}{\startitem \input ward \stopitem} > \stopitemize > \stoptextbackground > > \stoptext > > Best regards: Otared K. > > > On 15 Jul 2020, at 22:13, Wolfgang Schuster &

Re: [NTG-context] Text around a figure

2020-07-16 Thread Fabrice Couvreur
gt; \starttext > > \starttextbackground[fondpaille] > \startplacefigure[number=no,location=right] > \externalfigure[dummy] > \stopplacefigure > \startitemize[n] > \dorecurse{3}{\startitem \input ward \stopitem} > \s

Re: [NTG-context] Text around a figure

2020-07-15 Thread Otared Kavian
\starttextbackground[fondpaille] \startplacefigure[number=no,location=right] \externalfigure[dummy] \stopplacefigure \startitemize[n] \dorecurse{3}{\startitem \input ward \stopitem} \stopitemize \stoptextbackground \stoptext Best regards

Re: [NTG-context] Text around a figure

2020-07-15 Thread Wolfgang Schuster
,background=color,backgroundcolor=fondpaille]      \placefloat[][right,none]{}        {\externalfigure[dummy]}      \startitemize[n]        \dorecurse{3}{\startitem \input ward \stopitem}      \stopitemize    \stopframedtext    \stoptext Side floats don't work in frames, use the textbackground

[NTG-context] Text around a figure

2020-07-15 Thread Fabrice Couvreur
] \placefloat[][right,none]{} {\externalfigure[dummy]} \startitemize[n] \dorecurse{3}{\startitem \input ward \stopitem} \stopitemize \stopframedtext \stoptext ___ If your question is of interest

Re: [NTG-context] Symbol ' of the derived function + pagella + lmtx

2020-07-12 Thread Fabrice Couvreur
functions is not very nice with the symbol '. > Thank you. > Fabrice > > \setupbodyfont [pagella,11pt] > \starttext > \startitemize[n] > \startitem > \math{f'(x)=x²+4x+4} > \stopitem > \startitem > \math{f''(x)=2x+4

[NTG-context] Symbol ' of the derived function + pagella + lmtx

2020-07-11 Thread Fabrice Couvreur
Hello, I am now using the lmtx engine and I have found that using the Pagella font the writing of derived functions is not very nice with the symbol '. Thank you. Fabrice \setupbodyfont [pagella,11pt] \starttext \startitemize[n] \startitem \math{f'(x)=x²+4x+4} \stopitem \startitem

Re: [NTG-context] lpath to select last item

2020-07-08 Thread Hans Hagen
\startxmlsetups xml:h2 \section{\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:ul \startitemize\xmlflush{#1}\stopitemize \stopxmlsetups \startxmlsetups xml:li \startitem\xmlflush{#1}\stopitem \stopxmlsetups \startxmlsetups xml:last:item \startitem

[NTG-context] lpath to select last item

2020-07-07 Thread Pablo Rodriguez
\startxmlsetups xml:ul \startitemize\xmlflush{#1}\stopitemize \stopxmlsetups \startxmlsetups xml:li \startitem\xmlflush{#1}\stopitem \stopxmlsetups \startxmlsetups xml:last:item \startitem\red\xmlflush{#1}\stopitem \stopxmlsetups \starttext \xmlprocessbuffer{main}{demo

Re: [NTG-context] something between packed and "small"??

2020-07-01 Thread Wolfgang Schuster
ld think of. I only ask the list when I absolutely can't find anything. (Of course, at least once, it was there where I had already looked but I didn't understand enough to realize it!) I even gave searching the mailing list archives a shot. \starttext \startitemize \startitem First item \s

Re: [NTG-context] spacing before items

2020-06-17 Thread Hans Hagen
. \defineenumeration [question] [text=, alternative=serried, distance=1em, width=fit, before={\testpage[4]\blank[3*big]}, after={\blank}] \starttext \dorecurse{10}{ \startquestion \input ward \stopquestion \startitemize[packed,a] \startitem \input ward \stopitem

Re: [NTG-context] spacing before items

2020-06-17 Thread Mike Cooper
}\endgraf}, inbetween={\endgraf{\ttbf [inbetween]}\endgraf}, after={\endgraf{\ttbf [after]}\endgraf}] \startitemize \startitem Choose the correct answer. \startitemize \item This one \item This one \stopitemize \stopitem \startitem Cho

Re: [NTG-context] spacing before items

2020-06-17 Thread Mike Cooper
graf{\ttbf [inbetween]}\endgraf}, after={\endgraf{\ttbf [after]}\endgraf}] \startitemize \startitem Choose the correct answer. \startitemize \item This one \item This one \stopitemize \stopitem \startitem Choose the correct answ

Re: [NTG-context] spacing before items

2020-06-16 Thread Wolfgang Schuster
mgroup [itemize][1] [ before={\endgraf{\ttbf[before]}\endgraf}, inbetween={\endgraf{\ttbf [inbetween]}\endgraf}, after={\endgraf{\ttbf [after]}\endgraf}] \startitemize \startitem Choose the correct answer. \startitemize \item This one \item This one

  1   2   3   4   5   >